home *** CD-ROM | disk | FTP | other *** search
/ Mission to McDonaldLand / Mission To McDonaldLand.iso / code.cst / 00045_Script_CONVEYORBLOCKED < prev    next >
Text File  |  1998-10-29  |  4KB  |  129 lines

  1. on enterFrame
  2.   global heading
  3.   global move
  4.   global updown
  5.   global silly
  6.   global silly2
  7.   global nomore
  8.   global CStop
  9.   global castrestore
  10.   global restoration
  11.   
  12.   if CStop = 1 then 
  13.     set the member of sprite 30 = "Walk Left"
  14.     abort
  15.   end if
  16.   
  17.   if silly = 1 then
  18.     if the locH of sprite 30 < 100 or the locH of sprite 30 > 610 then
  19.       set silly = 0
  20.       puppetSound "off"
  21.       set the member of sprite 30 = "Right"
  22.     end if
  23.     
  24.     if the mouseH < the locH of sprite 30 then 
  25.       set the locH of sprite 30 = the locH of sprite 30 - 20
  26.       set the member of sprite 30 = "RocketL"
  27.     end if
  28.     if the mouseH > the locH of sprite 30 then 
  29.       set the locH of sprite 30 = the locH of sprite 30 + 20
  30.       set the member of sprite 30 = "RocketR"
  31.     end if
  32.     if the mouseV < the locV of sprite 30 then set the locV of sprite 30 = the locV of sprite 30 - 20
  33.     if the mouseV > the locV of sprite 30 and the locV of sprite 30 < 300 then set the locV of sprite 30 = the locV of sprite 30 + 20
  34.     if soundBusy(1) then set horrible = 1
  35.     else puppetSound "thruster"
  36.     abort
  37.   end if
  38.   
  39.   
  40.   if the locV of sprite 30 < 280 then
  41.     
  42.     set the locV of sprite 30 = the locV of sprite 30 + 20
  43.     if the locV of sprite 30 > 279 then puppetSound "thump"
  44.     abort
  45.   end if
  46.   
  47.   set the locH of sprite 30 = the locH of sprite 30 + 10
  48.   
  49.   if the mouseV < 270 or the mouseH > the locH of sprite 30 - 20 and the mouseH < the locH of sprite 30 + 20 then
  50.     if heading = 1 then set the member of sprite 30 = "Left"
  51.     if heading = 2 then set the member of sprite 30 = "Right"
  52.     set move = 0
  53.   end if
  54.   
  55.   if the mouseH > the locH of sprite 30 + 19 and the mouseV > 270 then 
  56.     set the member of sprite 30 = "Right"
  57.     set heading = 2
  58.   end if
  59.   
  60.   
  61.   if the mouseH < the locH of sprite 30 - 19 and the mouseV > 270 then 
  62.     set the member of sprite 30 = "Walk Left"
  63.     set heading = 1
  64.     set move = 1
  65.     set the locH of sprite 30 = the locH of sprite 30 - 15
  66.   end if
  67.   
  68.   if the mouseV > the locV of sprite 30 and the mouseV < the locV of sprite 30 + 50 then 
  69.     if move = 0 and heading = 1 then set the member of sprite 30 = "Left"
  70.     if move = 0 and heading = 2 then set the member of sprite 30 = "Right"
  71.     set updown = 0
  72.   end if
  73.   
  74.   if the mouseV < the locV of sprite 30 then 
  75.     if the locV of sprite 30 > 300 then
  76.       if move = 0 and heading = 1 then set the member of sprite 30 = "Walk Left"
  77.       if move = 0 and heading = 2 then set the member of sprite 30 = "Walk Right"
  78.       set the locV of sprite 30 = the locV of sprite 30 - 5
  79.       set updown = 1
  80.     end if
  81.   end if
  82.   
  83.   if the mouseV > the locV of sprite 30 + 50 then 
  84.     if the locV of sprite 30 < 320 then
  85.       if move = 0 and heading = 1 then set the member of sprite 30 = "Walk Left"
  86.       if move = 0 and heading = 2 then set the member of sprite 30 = "Walk Right"
  87.       set the locV of sprite 30 = the locV of sprite 30 + 5
  88.       set updown = 1
  89.     end if
  90.   end if
  91.   
  92.   if the locH of sprite 30 > 340 then 
  93.     if updown = 0 then set the member of sprite 30 = "Right"
  94.     set the locH of sprite 30 = 340
  95.   end if
  96.   
  97.   if the locH of sprite 30 < 40 then 
  98.     set the locH of sprite 30 = 590
  99.     set the member of sprite 30 = "blank"
  100.     set nomore = 0
  101.     set restoration = 0
  102.     set castrestore = 0
  103.     puppetTransition 12, 1, 30, TRUE
  104.     go previous
  105.     set the member of sprite 30 = "Walk Left"
  106.   end if
  107.   
  108. end
  109.  
  110.  
  111. on rightMouseDown
  112.   global silly
  113.   global heading
  114.   global CStop
  115.   if CStop = 1 then abort
  116.   set silly = 1
  117. end
  118.  
  119. on rightMouseUp
  120.   global silly
  121.   global heading
  122.   set silly = 0
  123.   set the member of sprite 30 = "Fall"
  124. end
  125.  
  126. on exitFrame
  127.   go the frame
  128. end
  129.